package com.example.series_play

import io.flutter.embedding.android.FlutterActivity
import android.content.Intent
import android.view.View

class MainActivity : FlutterActivity(){

   override fun setContentView(view: View?) {
        if (intent.flags and Intent.FLAG_ACTIVITY_BROUGHT_TO_FRONT != 0) {
            finish()
            return
        }
        if (!isTaskRoot) {
            finish()
            return
        }
        super.setContentView(view)
    }

}
